package com.weaver.seconddev.api.tl.request;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.Data;

import java.io.Serializable;

/**
 * 获取NPS系统Token请求报文
 *
 * @author th
 * @date 2023/8/15 14:00
 */
@Data
public class GetNPSTokenReq  implements Serializable {
    private String applicant;
    private String requestInfo;

    public String getRequestBody(){
        JSONObject message = new JSONObject();
        message.put("applicant", applicant);
        message.put("requestInfo", requestInfo);
        return JSON.toJSONString(message, SerializerFeature.WriteMapNullValue);
    }
}
